const { DataTypes } = require("sequelize");
const sequelize = require("../../config/sequelize");
const Config = sequelize.define("config", {
  // define 查找对应的config表
  id: {
    type: DataTypes.INTEGER,
    allowNull: false,
    primaryKey: true,
    autoIncrement: true,
  },
  note: {
    type: DataTypes.STRING,
  },
  params_name: {
    type: DataTypes.STRING,
  },
  params_key: {
    type: DataTypes.STRING,
  },
  params_value: {
    type: DataTypes.STRING,
  },
  channel_tag: {
    type: DataTypes.STRING,
  },
});

module.exports = Config;
